import  requests


url = 'https://movie.douban.com/top250'


headres = {
    # 这些带：的都是http2的，会卡住，需要删掉
    # ":authority": "movie.douban.com",
    # ":method": "GET",
    # ":path": "/top250",
    # ":scheme": "https",
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    "accept-encoding": "gzip, deflate, br, zstd",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "cache-control": "max-age=0",
    "cookie": "ll=\"108303\"; bid=3MeKRF2yNUU; _pk_id.100001.4cf6=b8fb5245b4f84728.1750162044.; _vwo_uuid_v2=DA32C8AE03A4DE7C95D1AF4A70D690A5F|51e1a9c7d4751a022aed0590e95d1f78; __utma=30149280.930386109.1750162044.1760275084.1761703909.7; __utmc=30149280; __utmz=30149280.1761703909.7.5.utmcsr=baidu|utmccn=(organic)|utmcmd=organic; __utma=223695111.2051516202.1750162044.1760275084.1761703924.7; __utmc=223695111; __utmz=223695111.1761703924.7.5.utmcsr=baidu|utmccn=(organic)|utmcmd=organic; ap_v=0,6.0; _pk_ref.100001.4cf6=%5B%22%22%2C%22%22%2C1761752051%2C%22https%3A%2F%2Fwww.bing.com%2F%22%5D; _pk_ses.100001.4cf6=1",
    "priority": "u=0, i",
    "referer": "https://www.bing.com/",
    "sec-ch-ua": "\"Microsoft Edge\";v=\"141\", \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"141\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "document",
    "sec-fetch-mode": "navigate",
    "sec-fetch-site": "cross-site",
    "sec-fetch-user": "?1",
    "upgrade-insecure-requests": "1",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0"
}
response = requests.get(url,headers=headres)
print(response.status_code)
print(response.request.headers)  # 请求响应